/*
 * Author :zhaoningbo
 * Date   :2011-8-25 16:18:39
 * Email  :zhaoningbo@hotmail.com
 * Blog   :http://zhaoningbo.iteye.com/
 */
package com.number.mt.await;

import java.io.Serializable;
import java.util.concurrent.CountDownLatch;

public class CountDownLatchSignals implements Serializable {

    private static final long serialVersionUID = -6715539446451734115L;

    private CountDownLatch startSignal;
    private CountDownLatch doneSignal;

    public CountDownLatchSignals(int startSignal, int doneSignal) {
        this.startSignal = new CountDownLatch(startSignal);
        this.doneSignal = new CountDownLatch(doneSignal);
    }

    public CountDownLatch getStartSignal() {
        return startSignal;
    }

    public CountDownLatch getDoneSignal() {
        return doneSignal;
    }

}
